package day12.edu;

// Created: 12/09/2025, ChangJiang Ru
public class PrintNumberTest1 {
    public static void main(String[] args) {

        // Using the method that implements class overrides anonymously
        new Thread()
        {
            @Override
            public void run()
            {
                for (int i = 0; i <= 100; i++) {
                    if (i % 2 == 0)
                        System.out.println(Thread.currentThread().getName() + "----->" + i);
                }
            }
        }.start();

        new Thread()
        {
            @Override
            public void run()
            {
                for (int i = 0; i <= 100; i++) {
                    if(i % 2 != 0)
                        System.out.println(Thread.currentThread().getName() + "======>" + i);
                }
            }
        }.start();

    }
}
